package com.lc.YYGH.compute.controller;

import com.lc.YYGH.common.result.Result;
import com.lc.YYGH.vo.order.OrderCountQueryVo;
import com.lc.yygh.orderclient.OrderFeignClient;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/admin/statistics")
public class StaticsController {
    @Autowired
    private OrderFeignClient orderFeignClient;
    @ApiOperation(value = "获取订单统计数据")
    @GetMapping("getCountMap")
    public Result getCountMap(@ApiParam(name="orderCountQueryVo",value="订单查询对象",required=false)
                              OrderCountQueryVo orderCountQueryVo)
     {
         return Result.success(orderFeignClient.getCountMap(orderCountQueryVo));
     }
}
